<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>


<meta http-equiv="content-type" content="text/html;charset=utf-8">
    <link class="include" rel="stylesheet" type="text/css" href="/AnxioTeamSpringMVC/script/jquery.jqplot.min.css"  />
    <link type="text/css" rel="stylesheet" href="/AnxioTeamSpringMVC/script/syntaxhighlighter/styles/shCoreDefault.min.css" />
    <link type="text/css" rel="stylesheet" href="/AnxioTeamSpringMVC/script/syntaxhighlighter/styles/shThemejqPlot.min.css" />

    <script type="text/javascript" src="/AnxioTeamSpringMVC/script/excanvas.js"></script>
    <script type="text/javascript" src="/AnxioTeamSpringMVC/script/jquery.min.js"></script>
    <script type="text/javascript" src="/AnxioTeamSpringMVC/script/jquery.jqplot.min.js"></script>
    <script type="text/javascript" src="/AnxioTeamSpringMVC/script/syntaxhighlighter/scripts/shCore.min.js"></script>
    <script type="text/javascript" src="/AnxioTeamSpringMVC/script/syntaxhighlighter/scripts/shBrushJScript.min.js"></script>
    <script type="text/javascript" src="/AnxioTeamSpringMVC/script/syntaxhighlighter/scripts/shBrushXml.min.js"></script>

    <script language="javascript" type="text/javascript" src="/AnxioTeamSpringMVC/script/plugins/jqplot.barRenderer.min.js"></script>
    <script class="include" language="javascript" type="text/javascript" src="/AnxioTeamSpringMVC/script/plugins/jqplot.categoryAxisRenderer.min.js"></script>
    <script class="include" language="javascript" type="text/javascript" src="/AnxioTeamSpringMVC/script/plugins/jqplot.pointLabels.min.js"></script>
    <script class="include" type="text/javascript" src="/AnxioTeamSpringMVC/script/plugins/jqplot.pieRenderer.min.js"></script>
    <script type="text/javascript" src="/AnxioTeamSpringMVC/script/charts.js"></script>



<style type="text/css">
body {
	background: #580000;
	margin: 0px;
}

#topBanner {
	background-color: #580000;
	font-size: 40px;
	color: white;
	padding: 24px;
	font-weight: bolder;
	text-align: center
}
/* Start styles for the menu elements */
#menu {
	background: #808080;
	border: #580000 solid;
	padding: 10px 0px 10px 0px;
}

.style1 {
	font-size: 20px;
	color: black;
	padding: 10px 30px 10px 30px;
	border: #580000 solid;
	text-decoration: none;
}

.box1 { //
	position: absolute;
	float: left;
	font-size: 18px;
	color: #000000;
	top: 170px;
	border:0;
	
	height: 500px;
	
	color: white;
}
.Attribute{
	position: relative;
	font-size: 18px;
	background-color:#900000;
	border: 0;
	
	height: 500px;
	padding: 15px;
	
}
 .box2 { 
	position: absolute;
	float:left;
	font-size: 18px;
	color: black;
	top: 170px;
	border:0;
	background-color:#900000;
	
	height: 500px;
	width: 500px;

}   
    
    .note {
        font-size: 0.8em;
    }
    .jqplot-yaxis-tick {
      white-space: nowrap;
    }

</style>

<title>Attribute</title>
</head>
<body>
<form method="post" id="form" action="/AnxioTeamSpringMVC/respondenttypecontroller/olala.html">
		<div id="topBanner">Axios Team GUI</div>
		<div id="menu" class="menu1">
			<a class="style1" href="#">Home</a>
			<a class="style1" href="menuitemcontroller.html">Axios</a>
			<a class="style1" href="respondenttypecontroller.html">Data</a>
			<a class="style1" href="#">Contact Us</a>
		</div>
		<br></br>
		<div class="Attribute">
		<div class="box1" id="respondenttype">
			<c:if test="${!empty respondenttypecontroller}">
				<c:forEach items="${respondenttypecontroller}" var="respondenttype">
					<tr>
						<td><input type="checkbox"
							id="${respondenttype.respondenttypename}" name="${respondenttype.respondenttypename}">${respondenttype.respondenttypename}</<input></td>
					</tr>
					<br></br>
				</c:forEach>
			</c:if>
			<input type="submit" value="Submit"/>
		</div>

		<div class="box1" style="float:left">
		<div style="float:left" id="cid">
			<table id = "chart">
				<c:forEach items="${selectedcheckboxes}" var="checkedcheckbox">
					<c:forEach items="${respondentcontroller}" var="respondent">
						<c:if test="${checkedcheckbox== respondent.respondenttypeid }">
							<tr>
									<td><c:out value="${respondent.respondentname}"/>
									<c:forEach items="${testcontroller}" var="respondentattributeassociation">
										<c:if test="${respondent.respondenttypeid == respondentattributeassociation.respondentId }">
											<td><c:out value="${respondentattributeassociation.importanceValue}"></c:out></td>
											<td><c:out value="${respondentattributeassociation.senstivitValue}"></c:out></td>
										</c:if>
									</c:forEach>
									</td>
							</tr>
							<br/>
						</c:if>
						<c:if test="${checkedcheckbox==1}">
							<tr>
								<td><c:out value="${respondent.respondentname}"/></td>
								<c:forEach items="${testcontroller}" var="respondentattributeassociation">
										<c:if test="${respondent.respondenttypeid == respondentattributeassociation.respondentId }">
											<td><c:out value="${respondentattributeassociation.importanceValue}"></c:out></td>
											<td><c:out value="${respondentattributeassociation.senstivitValue}"></c:out></td>
										</c:if>
								</c:forEach>
							</tr>
							<br/>
						</c:if> 
					</c:forEach>
				</c:forEach>
			</table>
			</div>
				<div class="box2" id="chart3" style="width:400px; height:300px;float:left"></div> 
    			<div id="pie1" style="margin-top:20px; margin-left:20px; width:400px; height:400px;"></div>
    		</div>
    		
    		<br></br>
		</div>
</form>
	
</body>
</html>